set -o nounset
set -o errexit
cd /Users/nick-xu/gocdtest/coredataTest

echo "start build"
# sed -i '' 's/ProvisioningStyle = Automatic;/ProvisioningStyle = Manual;/g' Wmsmobile.xcodeproj/project.pbxproj
# fastlane inhouse

xcodebuild -workspace coredataTest.xcworkspace -scheme coredataTest -archivePath ./build/coredataTest.xcarchive archive

xcodebuild -exportArchive -archivePath ./build/coredataTest.xcarchive   -exportPath ./build -exportOptionsPlist /Users/nick-xu/Documents/export.plist